package main

import "sync"

type dan struct {
	Name string
}

var a *dan
var one sync.Once

func get() *dan {
	if a == nil {
		one.Do(func() {
			a = &dan{Name: "11"}
		})
	}
	return a
}
func main() {

}
